import xadmin
from xadmin import views
from .models import UserProfile


# ----- adminx 全局配置
class BaseSetting:
    enable_themes = True
    use_bootswatch = True


class GlobalSettings:
    site_title = '情景学习后台管理系统'
    site_footer = '情景学习在线网'
    menu_style = 'accordion'


# ------
xadmin.site.register(views.BaseAdminView, BaseSetting)
xadmin.site.register(views.CommAdminView, GlobalSettings)
